/*
 * @Author: 31735 3173569276@qq.com
 * @Date: 2024-04-27 14:23:24
 * @LastEditors: 31735 3173569276@qq.com
 * @LastEditTime: 2024-05-05 15:40:25
 * @FilePath: \web-app\src\api\employee.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import service from "../utils/request";

export function FindAllEmployee(){
    return service({
        url: '/employee',
        method: 'get'
    })
}

export function SaveEmployee(data) {
    return service({
        url: '/employee',
        method: 'post',
        data: data
    })
}

export function DeleteEmployeeById(id){
    return service({
        url: '/employee?id=' + id,
        method: 'delete'
    })
}

export function SearchEmployeeName(name) {
    return service({
        url: '/employee/search/' + name,
        method: 'get'
    })
}


export function SearchEmployeeSex(gender) {
    return service({
        url: '/employee/searchSex/' + gender,
        method: 'get'
    })
}